project(SeparableConv CXX CUDA) 

FILE(GLOB_RECURSE SeparableConv_HEADER *.h *.hpp *.cuh)
FILE(GLOB SeparableConv_SOURCE *.cu *.cpp)

get_property(Common_HEADER GLOBAL PROPERTY "Common_HEADER")
get_property(Common_SOURCE GLOBAL PROPERTY "Common_SOURCE")

# ignore MSVC Warning [warning LNK4098]
set(CMAKE_EXE_LINKER_FLAGS /NODEFAULTLIB:"LIBCMT.lib")

cuda_add_executable(SeparableConv ${Common_SOURCE} ${Common_HEADER} ${SeparableConv_HEADER} ${SeparableConv_SOURCE})

target_link_libraries(SeparableConv cublas.lib)